<template>
  <fieldset>
    <legend>a组件</legend>
    <h1>a组件</h1>
    <tab></tab>
  </fieldset>
</template>
<script>
import tab from "../动态组件/index.vue";
export default {
  // name: "acom",
  activated() {
    //动态组件keep-alive触发的钩子函数
    console.log(this);
    console.log("acom被激活了");
  },
  deactivated() {
    console.log("acom被缓存了");
  },
  components: {
    tab,
  },
};
</script>
